package com.gitee.neuray.security.par.demo.feign.hystrix;

import com.gitee.neuray.security.admin.authority.PermissionElementDto;
import com.gitee.neuray.security.admin.dto.LoginUserDto;
import com.gitee.neuray.security.admin.dto.PmUserDto;
import com.gitee.neuray.security.par.demo.feign.DemoFeign;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: zhhongyu
 * @description:
 * @since: Create in 15:46 2020/8/25
 */
@Component
public class DemoFeignHystrix implements DemoFeign {
    @Override
    public PmUserDto validate(LoginUserDto loginUser) throws Exception {
        return new PmUserDto();
    }

    @Override
    public List<PermissionElementDto> getPermissionByUserId(String userId) throws Exception {
        return Lists.newArrayList();
    }
}
